.\" man page ape2flac.sh.9
.TH APE2FLAC 9 2010-02-18 "Aliens" "Simon's Manual Pages"
.SH NAME
ape2flac.sh \- Bash script to convert APE+CUE into set of FLACs
.SH SYNOPSIS
.B ape2flac.sh
(no input parameters are required)
.SH DESCRIPTION
The script looks for a combination of APE+CUE files in the current 
directory and runs the multistep process of lossless conversion into 
a set of FLAC files. Names of such files are assigned with respect to 
TITLE records in the CUE file.
.PP
$Id: ape2flac.sh.9 7 2010-02-23 01:13:41Z simonbaev $
.SH USAGE
1. Rename both *.ape and *.cue files: for file in $(ls *.cue *.ape); do mv "$file" CDImage.$(basename "$file" | cut -d. -f2); done
.PP
2. Change encoding: iconv -f CP1251 -t UTF8 CDImage.cue -o CDImage.cue
.PP
3. Optional processing of CUE file: sed "s/TITLE\ \"[0-9][0-9].\ /TITLE \"/g" CDImage.cue | tee CDImage.cue
.PP
4. Run the script from current directory.
.SH AUTHOR
Created by Simon Baev
.SH FILES
Requires the following packages (binaries) to be installed:
.PP
1. Monkey Media support 
.UR http://debian-multimedia.org/pool/main/m/monkeys-audio/monkeys-audio.php 
.UE
.PP
2. FLAC support. Debian package: 
.I flac
.PP
3. Shntool is a frontend of sorts for lossless audio software (mac, flac, wavpack). Debian package 
.I shntool
.PP
4. CUE tools. Debian package:
.I cuetools
.PP
5. APEInfo (optional). 
.UR http://legroom.net/software/apeinfo
.UE
